/**
 * 
 */
package apa.wings.gwtCRUD.shared.services;

import java.util.Date;

import com.google.gwt.user.client.rpc.AsyncCallback;

import apa.wings.gwtCRUD.shared.dto.PersonDTO;

/**
 * @author analiahojman
 *
 */
public interface PersonServiceAsync {
	
	public void findById(Integer id, AsyncCallback<PersonDTO> callback);

	public void savePerson(Integer id, String firstName, String lastName,
			Date birthDate, String sex, AsyncCallback<Void> callback) throws Exception;
	
	public void updatePerson(Integer id, String firstName, String lastName,
			Date birthDate, String sex, AsyncCallback<Void> callback) throws Exception;
	
	public void saveOrUpdatePerson(Integer id, String firstName,
			String lastName, Date birthDate, String sex, AsyncCallback<Void> callback) throws Exception;
	
	public void deletePerson(Integer id, AsyncCallback<Void> callback) throws Exception;
	
}
